module.exports = {
	title: 'uView Vue3.0 横空出世，继承uView1.0意志，再战江湖，风云再起！', // 设置网站标题
	description: '同时支持 Vue3.0 和 Vue2.0，你没看错，现在 uView 支持 Vue3.0 了！（不支持nvue，此版本为uView1.0的分支）',
	base: '/',
	dest: 'dist',
	markdown: {
		//lineNumbers: true
	},
	evergreen: true, // 只适配现代浏览器
	// <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	configureWebpack: (config, isServer) => {
		// 只有在发布(isServer=true)的时候才进行此修改操作，否则在本地预览时出问题
		if (isServer) {
			// 修改客户端的 webpack 配置
			// 加入一个时间戳，让每次编译时，文件都不一样，也即每次发版本，都强行更新所有文件
			return {
				output: {
					filename: `assets/js/[name].${+ new Date()}.[chunkhash].js`,
				}
			}
		}
	},
	head: [
		['meta', {
			name: 'viewport',
			content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'
		}],
		['meta', {
			name: 'keywords',
			content: 'vk-uview,uviewVue3.0,uview,uView,uviewui,uview ui,uviewUI,uViewui,uViewUI,uView UI,uni ui,uni UI,uni-app ui框架,uni-app UI框架,uniapp ui,ui,UI框架,uniapp ui框架,uniapp UI'
		}],
		[
		  'script',{},
		  `
		  var _hmt = _hmt || [];
		  (function() {
		    var hm = document.createElement("script");
		    hm.src = "https://hm.baidu.com/hm.js?1d1565dd0782e66106e6a42c79ed2554";
		    var s = document.getElementsByTagName("script")[0]; 
		    s.parentNode.insertBefore(hm, s);
		  })();
		  `
		]
	],

	themeConfig: {
		baseUrl: 'https://vkuviewdoc.fsq.pub',
		search: true, // 是否显示顶部搜索框
		searchPlaceholder: '搜索文档关键字',
		sidebarDepth: 0,
		editLinks: true,
		
		editLinkText: '编辑此页（一起来纠错与优化，方便你我Ta）',
		docsRepo: 'https://gitee.com/vk-uni/vk-uview-ui-doc.git', // 文档源文件的仓库 URL 。
		docsBranch: 'master', // 文档源文件的仓库分支。
		docsDir: "docs", // 文档源文件存放在仓库中的目录名。
		lastUpdated: "最后修改时间",
		nav: [{
				text: '指南',
				link: '/guide/demo'
			}, {
				text: '组件',
				link: '/components/intro'
			}, {
				text: 'JS',
				link: '/js/intro'
			}, {
				text: '模板',
				link: '/layout/intro'
			},
			{
				text: '资源',
				link: '/components/resource'
			},
			{
				text: '插件市场',
				link: 'https://ext.dcloud.net.cn/plugin?id=6692'
			}, {
				text: 'Gitee',
				link: 'https://gitee.com/vk-uni/vk-uview-ui'
			}, {
				text: 'VK其他插件',
				link: 'https://ext.dcloud.net.cn/publisher?id=164406',
				ariaLabel: 'DCloud插件市场',
				items: [
					{ text: 'vk-unicloud-router（client端）', link: 'https://ext.dcloud.net.cn/plugin?id=2204' },
					{ text: 'vk-unicloud-admin（admin端）', link: 'https://ext.dcloud.net.cn/plugin?id=5043' },
					{ text: 'vk-uni-pay（统一支付）', link: 'https://ext.dcloud.net.cn/plugin?id=5642' },
					{ text: 'vk-data-goods-sku-popup（sku组件）', link: 'https://ext.dcloud.net.cn/plugin?id=2848' },
					{ text: 'vk-uview-ui（uView Vue3.0）', link: 'https://ext.dcloud.net.cn/plugin?id=6692' },
					{ text: 'vk-redis', link: 'https://ext.dcloud.net.cn/plugin?id=6158' },
					{ text: 'vk-unicloud数据库一键搬家工具', link: 'https://ext.dcloud.net.cn/plugin?id=6089' },
					{ text: 'vk-hbx插件（开发辅助工具）', link: 'https://ext.dcloud.net.cn/plugin?id=6663' },
					{ text: '查看更多', link: 'https://ext.dcloud.net.cn/publisher?id=164406' }
				]
			}, {
				text: '原版uView',
				items: [{
					text: '1.X',
					link: 'https://v1.uviewui.com'
				}, {
					text: '2.X',
					link: 'https://uviewui.com'
				}]
			}
		],
		sidebar: {
			'/components/': [{
					title: '起步',
					collapsable: false,
					sidebarDepth: 0,
					children: [
						['/components/addQQGroup', '加QQ群交流反馈'],
						['/components/intro', '介绍'],
						['/components/install', '安装'],
						['/components/quickstart', '快速上手'],
						['/components/common', '内置样式'],
						['/components/feature', '注意事项'],
						['/components/nvue', 'Nvue排错指南'],
						['/components/changelog', '更新日志'],
						['/components/changeGuide', '升级指南'],
					]
				},
				{
					title: '组件',
					collapsable: false,
					sidebarDepth: 0,
					children: [{
							title: '基础组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/color',
								'/components/icon',
								'/components/image',
								'/components/button',
								'/components/layout',
								'/components/cell',
								'/components/badge',
								'/components/tag'
							]
						},
						{
							title: '表单组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/input',
								'/components/form',
								'/components/calendar',
								'/components/select',
								'/components/keyboard',
								'/components/picker',
								'/components/rate',
								'/components/search',
								'/components/numberBox',
								'/components/upload',
								'/components/verificationCode',
								'/components/field',
								'/components/checkbox',
								'/components/radio',
								'/components/switch',
								'/components/slider',
							]
						},
						{
							title: '数据组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/circleProgress',
								'/components/lineProgress',
								'/components/table',
								'/components/countDown',
								'/components/countTo',
							]
						},
						{
							title: '反馈组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/actionSheet',
								'/components/alertTips',
								'/components/toast',
								'/components/noticeBar',
								'/components/topTips',
								'/components/collapse',
								'/components/popup',
								'/components/swipeAction',
								'/components/modal',
								'/components/fullScreen',
							]
						},
						{
							title: '布局组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/line',
								'/components/card',
								'/components/mask',
								'/components/noNetwork',
								'/components/grid',
								'/components/swiper',
								'/components/timeLine',
								'/components/skeleton',
								'/components/sticky',
								'/components/waterfall',
								'/components/divider',
							]
						},
						{
							title: '导航组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/dropdown',
								'/components/tabbar',
								'/components/backTop',
								'/components/navbar',
								'/components/tabs',
								'/components/tabsSwiper',
								'/components/subsection',
								'/components/indexList',
								'/components/steps',
								'/components/empty',
								'/components/link',
								'/components/section',
							]
						},
						{
							title: '其他组件',
							collapsable: false,
							sidebarDepth: 0,
							children: [
								'/components/parse',
								'/components/messageInput',
								'/components/avatarCropper',
								'/components/loadMore',
								'/components/readMore',
								'/components/lazyLoad',
								'/components/gap',
								'/components/avatar',
								'/components/loading'
							]
						},
					]
				},
			],
			'/guide': [{
				title: '开发指南',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/guide/demo', '效果演示'],
					//	['/guide/addQQGroup', '加QQ群交流反馈'],
					['/guide/customIcon', '扩展自定义图标库'],
					['/guide/theme', '自定义主题'],
					['/guide/i18n', '多语言切换'],
					['/guide/globalVariable', '全局变量的实现'],
					['/guide/codeHint', 'HBuilder X代码提示'],
					['/guide/design', '设计理念'],
					['/guide/note', '注意事项'],
				]
			}],
			'/layout': [{
				title: '起步',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/layout/intro', '介绍'],
				]
			}, {
				title: '部件',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/layout/coupon', 'Coupon 优惠券'],
				]
			}, {
				title: '页面',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/layout/wxCenter', '微信个人中心页'],
					['/layout/keyboardPay', '自定义键盘支付'],
					['/layout/menu', '垂直分类'],
					['/layout/SubmitBar', '提交订单栏'],
					['/layout/comment', '评论列表'],
					['/layout/order', '订单列表'],
					['/layout/login', '登录界面'],
					['/layout/address', '收货地址'],
					['/layout/citySelect', '城市选择'],
				]
			}],
			'/js': [{
				title: '开发指南',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/js/intro', '介绍'],
					['/js/fastUse', '便捷工具'],
				]
			}, {
				title: '网络',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/js/http', 'Http请求'],
					['/js/apiManage', 'API集中管理']
				]
			}, {
				title: '工具库',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/js/debounce', '节流防抖'],
					['/js/deepClone', '对象深度克隆'],
					['/js/deepMerge', '对象深度合并'],
					['/js/time', '时间格式化'],
					['/js/route', '路由跳转'],
					['/js/randomArray', '数组乱序'],
					['/js/guid', '全局唯一标识符'],
					['/js/colorSwitch', '颜色转换'],
					['/js/color', '颜色值'],
					['/js/queryParams', '对象转URL参数'],
					['/js/test', '规则校验'],
					['/js/md5', 'md5加密'],
					['/js/random', '随机数值'],
					['/js/trim', '去除空格'],
					['/js/getRect', '节点布局信息'],
					['/js/mpShare', '小程序分享'],
				]
			}],
			'/course': [{
				title: '系列课程',
				collapsable: false,
				sidebarDepth: 0,
				children: [
					['/course/promise', 'Promise入门到精通'],
				]
			}]
		},
		logo: '/common/logo.png',
		// 需要显示H5预览的地址集合
		simulatorUrl: [
			'/components/intro',
			'/components/install',
			'/components/quickstart',
			'/components/common',
			'/components/changelog',
			'/components/line',
			'/components/card',
			'/components/color',
			'/components/icon',
			'/components/button',
			'/components/layout',
			'/components/cell',
			'/components/tabbar',
			'/components/badge',
			'/components/divider',
			'/components/tag',
			'/components/slider',
			'/components/keyboard',
			'/components/picker',
			'/components/rate',
			'/components/search',
			'/components/numberBox',
			'/components/upload',
			'/components/verificationCode',
			'/components/field',
			'/components/tabsSwiper',
			'/components/checkbox',
			'/components/radio',
			'/components/switch',
			'/components/modal',
			'/components/fullScreen',
			'/components/circleProgress',
			'/components/lineProgress',
			'/components/table',
			'/components/countDown',
			'/components/countTo',
			'/components/actionSheet',
			'/components/alertTips',
			'/components/toast',
			'/components/noticeBar',
			'/components/topTips',
			'/components/collapse',
			'/components/popup',
			'/components/swipeAction',
			'/components/mask',
			'/components/noNetwork',
			'/components/grid',
			'/components/swiper',
			'/components/timeLine',
			'/components/skeleton',
			'/components/sticky',
			'/components/waterfall',
			'/components/tabs',
			'/components/indexList',
			'/components/subsection',
			'/components/steps',
			'/components/empty',
			'/components/link',
			'/components/section',
			'/js/apiManage',
			'/components/messageInput',
			'/components/changeGuide',
			'/components/avatarCropper',
			'/components/loadMore',
			'/components/readMore',
			'/components/lazyLoad',
			'/components/gap',
			'/components/avatar',
			'/components/loading',
			'/layout/menu',
			'/components/image',
			'/layout/coupon',
			'/layout/SubmitBar',
			'/layout/comment',
			'/layout/order',
			'/layout/intro',
			'/layout/wxCenter',
			'/layout/keyboardPay',
			'/layout/login',
			'/layout/address',
			'/js/time',
			'/js/intro',
			'/js/fastUse',
			'/js/http',
			'/js/route',
			'/js/randomArray',
			'/js/guid',
			'/js/colorSwitch',
			'/js/color',
			'/js/queryParams',
			'/js/test',
			'/js/md5',
			'/js/random',
			'/js/trim',
			'/js/getRect',
			'/js/mpShare',
			'/components/navbar',
			'/components/calendar',
			'/components/select',
			'/components/form',
			'/components/backTop',
			'/js/deepMerge',
			'/js/deepClone',
			'/layout/citySelect',
			'/guide/theme',
			'/components/parse',
			'/js/debounce',
			'/guide/i18n',
			'/components/dropdown',
			'/course/promise'
		],
	},
	markdown: {
	  lineNumbers: false, // 是否在每个代码块的左侧显示行号。
	},
	plugins: [
		[
			"vuepress-plugin-juejin-style-copy",
			{
				copyText: '复制代码',
				tip: { content: "复制成功", title: "" },
				visibleTip: true,
			}
		]
	]
}
